package org.framework.common.api.support.model;

import java.io.Serializable;

import org.springframework.stereotype.Component;
import org.springframework.ui.ModelMap;

@Component
public class HtmlModel implements Serializable {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -7592116421244356739L;

	private String root = "/miwawa";
	
	private ModelMap result = new ModelMap();

	public String getRoot() {
		return root;
	}

	public void setRoot(String root) {
		this.root = root;
	}

	public ModelMap getResult() {
		return result;
	}

	public void setResult(ModelMap result) {
		this.result = result;
	}
	
	public void addResult(final String name, final Object value){
		result.addAttribute(name, value);
	}
	
	public void clearResult(){
		result.clear();
	}
}
